<%@ Page language="vb" Inherits="_2bMatesSite.add_news" ValidateRequest="false" CodeFile="add_news.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<form id="Form1" method="post" runat="server">
	<table cellSpacing="0" cellPadding="0" height="100%" width="100%" align="center" border="0">
		<tr>
			<td class="page_title"><asp:literal id="litTitle" runat="server">Admin part for adding news to spacial page</asp:literal></td>
		</tr>
		<tr>
			<td vAlign="top" height="100%" class="main_table_border">
				<div class="content">
					<table cellSpacing="0" cellPadding="0" width="98%" border="0" class="main_text_form">
						<tr>
							<td id="error" valign="top" align="left"><asp:validationsummary id="Validationsummary1" runat="server" displaymode="List" cssclass="val_summary" Height="32px"></asp:validationsummary></td>
						</tr>							
						<tr>
							<td vAlign="top"><asp:label id="lblSpecialPage" runat="server" Font-Bold="True">Special page</asp:label></td>
							<td vAlign="top"><asp:Label id="lblPageName" runat="server">Label</asp:Label></td>
						</tr>
						<tr>
							<td vAlign="top"><asp:label id="lblTitle" runat="server" Font-Bold="True">Title</asp:label><font class="notes_text">*</font></td>
							<td vAlign="top"><asp:textbox id="txtTitle" runat="server" CssClass="mail_field" Width="404px" Rows="1" MaxLength="400"></asp:textbox><asp:RequiredFieldValidator id="rvTxtTitle" runat="server" ErrorMessage="Please enter a title" ControlToValidate="txtTitle"
									Display="None"></asp:RequiredFieldValidator></td>
						</tr>
						<tr>
							<td vAlign="top"><asp:label id="lblSubtitle" runat="server" Font-Bold="True">Subtitle</asp:label></td>
							<td vAlign="top"><asp:textbox id="txtSubtitle" runat="server" CssClass="mail_field" Width="404px" Rows="1" MaxLength="400"></asp:textbox></td>
						</tr>
						<tr>
							<td vAlign="top"><asp:label id="lblContent" runat="server" Font-Bold="True">Content</asp:label><font class="notes_text">*</font></td>
							<td vAlign="top"><asp:textbox id="txtContent" runat="server" CssClass="mail_field" Width="404px" Rows="1" MaxLength="50000"
									TextMode="MultiLine" Height="160px"></asp:textbox><asp:RequiredFieldValidator id="rvTxtContent" runat="server" ErrorMessage="Please enter news content" ControlToValidate="txtContent"
									Display="None"></asp:RequiredFieldValidator></td>
						</tr>
						<tr>
							<td vAlign="top"><asp:label id="lblUser" runat="server" Font-Bold="True">User</asp:label></td>
							<td vAlign="top"><asp:DropDownList id="ddlUsers" runat="server" CssClass="mail_field" Width="404px"></asp:DropDownList>
							<asp:CustomValidator id="cvUserGroup" runat="server" Display="None" ErrorMessage="Please choose a user or a group"></asp:CustomValidator></td>
						</tr>
						<tr id="trGroupRow" runat="server" >
							<td vAlign="top"><asp:label id="lblGroup" runat="server" Font-Bold="True">Group</asp:label></td>
							<td vAlign="top"><asp:DropDownList id="ddlGroups" runat="server" CssClass="mail_field" Width="404px"></asp:DropDownList></td>
						</tr>
						<tr>
							<td vAlign="top"><asp:label id="lblPhoto" runat="server" Font-Bold="True">Photo</asp:label></td>
							<td vAlign="top"><INPUT class="mail_field" id="fldFileUpload" style="WIDTH: 404px;HEIGHT: 18px" type="file"
									size="30" runat="server" NAME="fldFileUpload"></td>
						</tr>
						<tr>
							<td vAlign="top">&nbsp;</td>
							<td vAlign="top" align="right"><br><asp:button id="btnSubmit" runat="server" CssClass="btn" Width="100px" Text="Submit"  onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" onclick="btnSubmit_Click"></asp:button><br><br></td>
						</tr>
						<tr>
							<td vAlign="top" align="center" colspan="2">
								<asp:Image id="imgNews" runat="server" Visible="False"></asp:Image></td>
						</tr>
						<tr>
							<td vAlign="top">&nbsp;</td>
							<td vAlign="top" align="right"><br><asp:button id="btnDelete" runat="server" Width="100px" CssClass="btn" Text="Delete Image" Visible="False"  onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" onclick="btnDelete_Click"></asp:button></td>
						</tr>
					</table>
				</div>	
			</td>
		</tr>
	</table>
</form>
